package com.yl.conference.di

import com.yl.common.network.RetrofitManager
import com.yl.conference.api.ConferenceApi
import com.yl.conference.repo.ConferenceRepo
import com.yl.conference.viewmodel.ConferenceViewModel
import org.koin.androidx.viewmodel.dsl.viewModel
import org.koin.dsl.module

/**
 * Created by stew on 8/5/22.
 * mail: stewforani@gmail.com
 */
val conferenceModule = module {
    single { RetrofitManager.getService(ConferenceApi::class.java) }
    single { ConferenceRepo(get()) }
    viewModel { ConferenceViewModel(get()) }
}